package cn.sirun.com.fca.personal.center.block.item.impl;

import com.tencent.cloud.iov.util.ObjectUtils;

import cn.sirun.com.fca.personal.center.block.item.IPersonalOptionsItem;

public class PersonalOptionsItem implements IPersonalOptionsItem {

    private int mTitleId;

    private String mTitle;

    private String mTextValue = "";

    private boolean mSwitch = false;

    private String mAction = "";

    public int getmTitleId() {
        return mTitleId;
    }

    public void setmTitleId(int mTitleId) {
        this.mTitleId = mTitleId;
    }

    public String getmTitle() {
        return mTitle;
    }

    public void setmTitle(String mTitle) {
        this.mTitle = mTitle;
    }

    public String getmTextValue() {
        return mTextValue;
    }

    public void setmTextValue(String mTextValue) {
        this.mTextValue = mTextValue;
    }

    public boolean ismSwitch() {
        return mSwitch;
    }

    public void setmSwitch(boolean mSwitch) {
        this.mSwitch = mSwitch;
    }

    public String getmAction() {
        return mAction;
    }

    public void setmAction(String mAction) {
        this.mAction = mAction;
    }

    public PersonalOptionsItem() {
    }


    public int getTitleId() {
        return mTitleId;
    }

    @Override
    public String getTitle() {
        return mTitle;
    }

    @Override
    public String getTextValue() {
        return mTextValue;
    }

    @Override
    public boolean isSwitch() {
        return mSwitch;
    }

    @Override
    public String getAction() {
        return mAction;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        PersonalOptionsItem that = (PersonalOptionsItem) o;
        return mTitleId == that.mTitleId &&
                mSwitch == that.mSwitch &&
                ObjectUtils.equals(mTitle, that.mTitle) &&
                ObjectUtils.equals(mTextValue, that.mTextValue) &&
                ObjectUtils.equals(mAction, that.mAction);
    }

    @Override
    public int hashCode() {
        return ObjectUtils.hash(mTitleId, mTitle, mTextValue, mAction);
    }

}
